// This is a JavaScript module that is loaded on demand. It can export any number of
// functions, and may import other JavaScript modules if required.

export function showPrompt(message) {
  return prompt(message, 'Type anything here');
}


export function syncPopupWidth(popup, parent) {

  var parentRect = parent ? parent.getBoundingClientRect() : { top: y || 0, bottom: 0, left: x || 0, right: 0, width: 0, height: 0 };

  popup.style.width = parentRect.width + 'px';
  if (!popup.style.minWidth) {
    popup.minWidth = true;
    popup.style.minWidth = parentRect.width + 'px';
  }
}
